package com.css.zfzx.fxpg.modules.economicloss.probability.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.economicloss.probability.repository.entity.FxEconomyLossProbabilityComputeEntity;
import com.css.zfzx.fxpg.modules.economicloss.probability.viewobjects.FxEconomyLossProbabilityComputeQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author andy
 * @date 2020-12-08
 */

public interface FxEconomyLossProbabilityComputeService {

    public JSONObject queryFxEconomyLossProbabilityComputes(FxEconomyLossProbabilityComputeQueryParams queryParams, int curPage, int pageSize);

    public FxEconomyLossProbabilityComputeEntity getFxEconomyLossProbabilityCompute(String id);

    public FxEconomyLossProbabilityComputeEntity saveFxEconomyLossProbabilityCompute(FxEconomyLossProbabilityComputeEntity fxEconomyLossProbabilityCompute);

    public FxEconomyLossProbabilityComputeEntity updateFxEconomyLossProbabilityCompute(FxEconomyLossProbabilityComputeEntity fxEconomyLossProbabilityCompute);

    public void deleteFxEconomyLossProbabilityComputes(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    String findByDictCodeAndDictItemCode(String dictCode, String dictItemCode);

    public List<FxEconomyLossProbabilityComputeEntity> getFxEconomyLossProbabilityComputes(FxEconomyLossProbabilityComputeQueryParams queryParams);

    public String exportExcel(FxEconomyLossProbabilityComputeQueryParams queryParams, HttpServletResponse response);

    public String importExcel(MultipartFile file);

    public void saveOrUpdate(FxEconomyLossProbabilityComputeEntity probabilityComputeEntity);
}
